package com.demo.controller;

import com.demo.service.T1Service;
import com.demo.service.T2Service;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Auther: luobiao
 * @Date: 2020/11/30 22:27
 * @Description:
 */
@RestController
public class IndexController {
    @Resource
    T1Service t1Service;

    @Resource
    T2Service t2Service;

    @RequestMapping("index1")
    public Object index1(){
        return t1Service.list();
    }
    @RequestMapping("index2")
    public Object index2(){
        return t2Service.list();
    }


    @RequestMapping("test")
    private Object test(Object object){
        System.out.println(object);
        return null;
    }
}
